import java.util.Scanner;

public class Add {
    public static void main(String[] args) {
        int a=0;
        int b=0;
        int[] Array = {2,7,11,15};
        Scanner scanner = new Scanner(System.in);
        int target = scanner.nextInt();
        for(int i = 0;i<Array.length;i++){
            for(int j = i+1;j<Array.length;j++){
                if(Array[i]+Array[j]==target){
                     a=i;
                     b=j;
                     break;
                }
            }
        }
        System.out.println("["+a+","+b+"]");
    }
}
